package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 类别管理对象 youxuan_category
 * 
 * @author admin
 * @date 2020-12-30
 */
public class YouxuanCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类别id */
    private Long id;

    /** 类别名 */
    @Excel(name = "类别名")
    private String name;

    /**  */
    private Integer parentFlag;

    /** $column.columnComment */
    private Long parentId;

    /** $column.columnComment */
    private Integer useFlag;

    /** $column.columnComment */
    private Long code;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtUpdate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentFlag(Integer parentFlag) 
    {
        this.parentFlag = parentFlag;
    }

    public Integer getParentFlag() 
    {
        return parentFlag;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setUseFlag(Integer useFlag) 
    {
        this.useFlag = useFlag;
    }

    public Integer getUseFlag() 
    {
        return useFlag;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setGmtUpdate(Date gmtUpdate) 
    {
        this.gmtUpdate = gmtUpdate;
    }

    public Date getGmtUpdate() 
    {
        return gmtUpdate;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentFlag", getParentFlag())
            .append("parentId", getParentId())
            .append("useFlag", getUseFlag())
            .append("code", getCode())
            .append("gmtUpdate", getGmtUpdate())
            .append("gmtCreate", getGmtCreate())
            .toString();
    }
}
